package com.example.secondhandshop.bean;

import androidx.annotation.NonNull;
public class ResponseBody<T> {
    private int code;   // 响应代码
    private String msg;  // 响应消息
    private T data;     // 泛型数据

    // Getter 和 Setter 方法

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    @NonNull
    @Override
    public String toString() {
        return "ResponseBody{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
